
const Course = require( '../models/Course' );

Course.findAll()
.then( rows => rows.map( row => row.dataValues ))
.then( courses => {
    courses.forEach( cou => {
        console.log( cou );
    })
})

